package bean.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;
import com.google.appengine.datanucleus.annotations.Unowned;

@PersistenceCapable
public class DiscussContent {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private Text content;
	
	@Persistent
	private Date time;
	
	@Persistent
	@Unowned
	private Member poMember;

	public DiscussContent(Key key, Text content, Date time, Member poMember) {
		super();
		this.key = key;
		this.content = content;
		this.time = time;
		this.poMember = poMember;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Text getContent() {
		return content;
	}

	public void setContent(Text content) {
		this.content = content;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Member getPoMember() {
		return poMember;
	}

	public void setPoMember(Member poMember) {
		this.poMember = poMember;
	}
}
